package com.service2.service

import com.base.model.service2.Model_Service2
import com.base.service.IRPC_Service2_Dubbo
import com.yfree.global.YController
import org.apache.dubbo.config.annotation.DubboService
import org.springframework.beans.factory.annotation.Value

@DubboService(group = "service2", version = "1")
class DubboImpl_Service2(
    @Value("\${server.port}") var serverPort: String
) : YController(), IRPC_Service2_Dubbo {
    override fun index(): String {
        return yResult(
            result = listOf(
                Model_Service2("Dubbo:Server2Port:$serverPort")
            )
        )
    }
}
